<template>
	<view class="uni_box home">
		<navbar title='课程大纲' :yin="true">
		</navbar>
		<view class="content">
			<u-sticky :offset-top="BarHeight()" h5-nav-height="44">
				<view class="tabview">
					<u-tabs :list="tablist" :is-scroll="true" :current="tabcurrent" @change="tabchange" active-color="#FD854F" inactive-color="#6F7B84"></u-tabs>
				</view>
			</u-sticky>
			<view class="nav">
				<view class="lianview" v-for="(item,index) in 2" :key="index">
					<view class="lianone">
						<image class="quan" src="@/pages_subject/static/img/quanjia.png" mode="" />
						<!-- <image class="quan" src="@/pages_subject/static/img/quanjian.png" mode="" /> -->
						<view class="liannav">
							<text class="tibiao">Foundations of Risk Management</text>
							<text class="tishu">总题数：<text class="tinum">120</text></text>
						</view>
						<!-- <u-icon class="ricon" name="arrow-down" color="#333" size="28"></u-icon>
						<u-icon class="ricon" style="display: none;" name="arrow-up" color="#333" size="28"></u-icon> -->
					</view>
					<view class="liatwo" v-for="(item,index) in 2" :key="index">
						<view class="quan"></view>
						<view class="ltone">
							<text class="lmiaoname">  Corporate Risk Management: A Primer</text>
							<view class="lmiantwo">
								<text class="tishu">知识点：3 个</text>
								<text class="tishu">学习进度：1/3</text>
							</view>
						</view>
						<view class="kaixue kactive">开始学习</view>
						<!-- <image class="del" src="@/pages_subject/static/img/del.png" mode="" />
						<image class="del" src="@/pages_subject/static/img/zhang.png" mode="" /> -->
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				checked:false,
				tablist:[
					{
						name: '前导班'
					}, {
						name: '基础班'
					}, {
						name: '强化班'
					},{
						name:'押题班'
					}
				],
				tabcurrent:0,
			}
		},
		onLoad() {
			
		},
		onShow() {
		},
		methods: {
			change(index) {
				this.current = index;
			},
			tabchange(e){
				this.tabcurrent = e
			},
		}
	}
</script>

<style lang="scss" scoped>
	page{
		background-color: #fff;
	}
	.content{
		background-color: #fff;
		// padding-bottom: 150rpx;
		padding: 0rpx 0rpx;
		.tabview{
			padding: 20rpx;
			background-color: #fff;
			z-index: 100;
			// margin-top:  calc(var(--window-top));
		}
		.nav{
			padding:0 30rpx;
		}
		.tiyd{
			font-family: PingFang SC;
			font-weight: 500;
			font-size: 26rpx;
			color: #333333;
			display: flex;
			align-items: center;
			flex-direction: row;
			margin: 10rpx 0;
			.tida{
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 26rpx;
				color: #333333;
				display: inline-block;
				margin-right: 30rpx;
			}
		}
		.lianview{
			margin-bottom: 20rpx;
		}
		.lianone{
			display: flex;
			flex-direction: row;
			align-items: center;
			border-bottom: 1rpx solid #eee;
			padding: 20rpx 0;
			.quan{
				width: 42rpx;
				height: 42rpx;
				margin-right: 20rpx;
			}
			.tibiao{
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 26rpx;
				color: #333333;
			}
			.tishu{
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 24rpx;
				color: #A3A3A3;
				display: block;
				margin-top: 10rpx;
			}
			.tinum{
				color: rgba(253, 134, 79, 1);
			}
		}
		.ricon{
			margin-left: auto;
		}
		.liatwo{
			margin-left: 20rpx;
			display: flex;
			// padding-left: 20rpx;
			flex-direction: row;
			align-items: center;
			border-bottom: 1rpx solid #eee;
			padding: 20rpx 20rpx;
			.quan{
				width: 10rpx;
				height: 10rpx;
				background-color: rgba(253, 134, 79, 1);
				border-radius: 50%;
				margin-right: 20rpx;
			}
			.ltone{
				display: flex;
				flex-direction: column;
				width: 74%;
				.lmiaoname{
					font-family: PingFang SC;
					font-weight: 500;
					font-size: 24rpx;
					color: #333333;
				}
				.lmiantwo{
					display: flex;
					flex-direction: row;
					align-items: center;
					margin-top: 15rpx;
					justify-content: space-between;
					.tishu{
						font-family: PingFang SC;
						font-weight: 500;
						font-size: 24rpx;
						color: #A3A3A3;
						display: inline-block;
						margin-right: 20rpx;
					}
					.tishunum{
						color: rgba(253, 134, 79, 1);
					}
				}
				
			}
			.del{
					width: 28rpx;
					height: 28rpx;
					margin-left: 20rpx;
				}
			.kaixue{

				padding: 10rpx 15rpx;
				border-radius: 50rpx;
				border: 1px solid #FD864F;
				font-family: PingFang SC;
				font-weight: 500;
				font-size: 24rpx;
				color: #FD864F;
				margin-left: auto;
			}
			.kactive{
				background: #FA504E;
				border: none;
				color: #fff;
			}
		}
	}
</style>
